/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hxg.portmgr.core.dao;

import hxg.portmgr.core.device.DeviceModel;
import hxg.portmgr.core.device.DeviceType;
import java.util.List;
import java.util.Set;

/**
 *
 * @author hxg
 */
public interface DeviceModelDAO extends DataSource {

    public Set<DeviceModel> getDeviceModels();

    public DeviceModel addDeviceModel(DeviceModel m);

    public void removerDeviceModel(DeviceModel m);

    public DeviceModel getModelBySysOid(String oid);

    public DeviceType getDeviceTypeBySysOid(String oid);

    public List<DeviceModel> getDeviceModelsOfType(DeviceType type);

    public void load();

    public void save();
}
